import request from '@/js/request'

export default {
	// tababr 委托列表
	getEntrustList: (data) => request({
		method: 'GET',
		url: '/api/dev_entrust/index?',
		data
	}),
	// tababr 委托详情
	getEntrustDetail: (data) => request({
		method: 'POST',
		url: '/api/dev_entrust/getEntrustDetail',
		data
	}),
	// 委托接单
	// www.fahuren.com/api/dev_entrust/claimEnt
	claimEntrust: (data) => request({
		method: 'POST',
		url: '/api/dev_entrust/claimEntrust',
		data
	}),
	// 委托新增
	// /api/dev_entrust/add
	addEntrust: (data) => request({
		method: 'POST',
		url: '/api/dev_entrust/add',
		data
	}, {
		isToast: true
	}),

	// 委托人取消发布接口
	cancelRelease: (data) => request({
		method: 'POST',
		url: '/api/dev_entrust/cancelRelease',
		data
	}, {
		isToast: true
	}),
	// 已完成
	confirmFinshEntrust: (data) => request({
		method: 'POST',
		url: '/api/dev_entrust/confirmFinshEntrust',
		data
	}, {
		isToast: true
	}),
	// 确定委托
	confirmEntrust: (data) => request({
		method: 'POST',
		url: '/api/dev_entrust/confirmEntrust',
		data
	}, {
		isToast: true
	}),
	// /api/dev_entrust/sendObjection 提交异议
	sendObjection: (data) => request({
		method: 'POST',
		url: '/api/dev_entrust/sendObjection',
		data
	}, {
		isToast: true
	}),

	// 官司合同
	lawsuitIndex: (data) => request({
		method: 'GET',
		url: '/api/dev_lawsuit/index',
		data
	}),
	// 上传官司合同
	lawsuitSubmit: (data) => request({
		method: 'POST',
		url: '/api/dev_lawsuit/submit',
		data
	}, {
		isToast: true
	}),


	// 合同审核
	// www.fahuren.com/api/dev_order_customize/lawyerOrderList?state=&order_no=&page=&page_size=
	customMake: (data) => request({
		method: 'GET',
		url: '/api/dev_order_customize/lawyerOrderList',
		data,
	}),

	lawyerSub: (data) => request({
		method: 'POST',
		url: '/api/dev_order_customize/lawyerSub',
		data,
	}, {
		isToast: true
	}),
	// 合同定制审核详情
	auditOrderDetail: (data) => request({
		method: 'POST',
		url: '/api/dev_order_customize/detail',
		data,
	}),
	// 合同审核列表
	auditReviewOrderList: (data) => request({
		method: 'GET',
		url: '/api/dev_order_review/lawyerOrderList',
		data,
	}),
	// 合同审核编辑
	auditReviewEdit: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/lawyerSub',
		data,
	}, {
		isToast: true
	}),
	auditDetailInfo: (data) => request({
		method: 'POST',
		url: '/api/dev_order_review/detail',
		data,
	}),
}